<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>订单处理</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<!-- 项目前置 -->
	<link rel="shortcut icon" href="favicon.ico">
	<link rel="stylesheet" href="css/iconfont.css">
	<link rel="stylesheet" href="css/global.css">
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/bootstrap-theme.min.css">
	<link rel="stylesheet" href="css/swiper.min.css">
	<link rel="stylesheet" href="css/styles.css">
	<script src="js/jquery.1.12.4.min.js" charset="UTF-8"></script>
	<script src="js/bootstrap.min.js" charset="UTF-8"></script>
	<script src="js/swiper.min.js" charset="UTF-8"></script>
	<script src="js/global.js" charset="UTF-8"></script>
	<script src="js/jquery.DJMask.2.1.1.js" charset="UTF-8"></script>
	<script type="text/javascript">

</script>
<!-- 项目前置 -->
<!-- 本页前置 -->

<!-- 本页前置 -->

</head>

<body>
	<!-- 顶部tab -->
	
	<!-- 顶部标题 -->
	<div class="bgf5 clearfix">
		<div class="top-user">
			<div class="inner">
				<a class="logo" href="index.html"><img src="images/icons/logo.jpg" alt="XXX" class="cover"></a>
				<div class="title">管理员个人中心</div>
			</div>
		</div>
	</div>
	<div class="content clearfix bgf5">
		<section class="user-center inner clearfix">
			<div class="pull-left bgf">
				<a href="login.jsp" class="title">U袋欢迎页</a>
				<dl class="user-center__nav">
					<dt>帐户信息</dt>
					<a href="AdminSettingServlet?op=query"><dd class="active">个人资料</dd></a>
					<a href="Admin_pwd.jsp"><dd class="active">修改登录密码</dd></a>
				</dl>
				<dl class="user-center__nav">
					<dt>管理中心</dt>
					<a href="AdminsellerorderServlet?op=page&page=1"><dd class="active">我的订单</dd></a>
				    <a href="Admin_ShopShelves.jsp"><dd class="active">商品上架</dd></a>
				    <a href="Admin_ShopShelves2.jsp"><dd class="active">商品下架</dd></a>
				    <a href="Admin_ShopShelves3.jsp"><dd class="active">商品入库</dd></a>
				    <a href="Admin_ShopShelves4.jsp"><dd class="active">库存查看</dd></a>
				</dl>
				<dl class="user-center__nav">
					<dt>服务中心</dt>
					<a href="#"><dd>物流查询</dd></a>
					<a href="#"><dd>数据自助下载</dd></a>
					<a href="#"><dd>售后服务</dd></a>
					<a href="#"><dd>配送服务</dd></a>
					<a href="#"><dd>用户协议</dd></a>
					<a href="#"><dd>常见问题</dd></a>
				</dl>
				<dl class="user-center__nav">
					<dt>新手上路</dt>
					<a href="#"><dd>如何成为代理商</dd></a>
					<a href="#"><dd>代销商上架教程</dd></a>
					<a href="#"><dd>分销商常见问题</dd></a>
					<a href="#"><dd>付款账户</dd></a>
				</dl>
				<dl class="user-center__nav">
					<dt>XXX</dt>
					<a href="#"><dd>企业简介</dd></a>
					<a href="#"><dd>加入U袋</dd></a>
					<a href="#"><dd>隐私说明</dd></a>
				</dl>
			</div>
			<div class="pull-right">
				<div class="user-content__box clearfix bgf">
					<div class="title">订单中心-我的订单</div>
					<div class="order-list__box bgf">
						<div class="order-panel">
							<ul class="nav user-nav__title" role="tablist">
								<li role="presentation" class="nav-item active"><a href="#all" aria-controls="all" role="tab" data-toggle="tab">所有订单${counts }</a></li>
								<li role="presentation" class="nav-item "><a href="#daifukuan" aria-controls="pay" role="tab" data-toggle="tab">待付款 <span class="cr">${countPayed }</span></a></li>
								<li role="presentation" class="nav-item "><a href="#daifahuo" aria-controls="emit" role="tab" data-toggle="tab">待发货 <span class="cr">${countSend }</span></a></li>
								<li role="presentation" class="nav-item "><a href="#daishouhuo" aria-controls="take" role="tab" data-toggle="tab">待收货 <span class="cr">${countState }</span></a></li>
								<li role="presentation" class="nav-item "><a href="#yishouhuo" aria-controls="eval" role="tab" data-toggle="tab">已收货<span class="cr">${countStates}</span></a></li>
								<li role="presentation" class="nav-item "><a href="#tuidanchuli" aria-controls="eval" role="tab" data-toggle="tab">退货退款<span class="cr">${countTuihuochuli}</span></a></li>
							    <li role="presentation" class="nav-item "><a href="#tuidan" aria-controls="eval" role="tab" data-toggle="tab">已退货<span class="cr">${countTuihuo}</span></a></li>
							</ul>

							<div class="tab-content">
								<div role="tabpanel" class="tab-pane fade in active" id="all">
								<div id="pagination" class="pagination"></div>
									<table class="table text-center">
										<tr>
											<th width="380">商品信息</th>
											<th width="85">单价</th>
											<th width="85">数量</th>
											<th width="120">实付款</th>
											<th width="120">交易状态</th>
											<th width="120">交易操作</th>
										</tr>
				    <c:forEach items="${orderList }" var="o" varStatus="s" >
				    				     
				    <tr>
				    <td>
				    <table>
				        <tr>
				            <td  colspan="2"  >${o.odate }&nbsp;订单号：${o.oid  }</td>
				        </tr>
				        <tr>
				            <td><img src="images/temp/${o.clothes.cimgurl }" height="100px" width="100px" /></td>
				            <td>${o.clothes.cname }<br/>颜色：${o.clothes.ccolor }  尺寸：${o.clothes.csize }</td>
				         </tr>
				    </table>
				    </td>
				     
				    <td>￥${o.clothes.cprice }</td>
				    <td>${o.onum }</td>
				    <td>￥${o.oprice}</td>
				    <td>      
				    <c:if test="${o.opayed==1 }">
				           交易成功
				    </c:if>
				    <c:if test="${o.opayed==0 }">
				       等待付款
				    </c:if>
				      <br/>
				    <c:if test="${o.osend==0 }">
				       等待发货
				    </c:if>
				    <c:if test="${o.osend==1 }">
				       已发货
				    </c:if>
				      <br/>
				    <c:if test="${o.ostate==0 }">
				       等待收货
				    </c:if>
				    <c:if test="${o.ostate==1 }">
				       已收货
				    </c:if>
				    </td>
				    <td>
				    
				    <c:if test="${o.osuccess==0 }">
				    <c:if test="${o.oorder==0 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateorder&id=${o.oid}">取消订单</a><br/>
				    </c:if>
				    <c:if test="${o.oorder==1 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				          订单已取消<br/>
				    </c:if>
				    </c:if>
				    
				    <c:if test="${o.osuccess==1 }"> 
				    <br/>
				    <c:if test="${o.otuihuo==0}">
				    
				    <c:if test="${o.osend==0 }">
				    <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatefahuo&id=${o.oid}">确认发货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==0 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateshouhuo&id=${o.oid}">确认收货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				     </c:if>
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==1 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    </c:if>
				    </c:if>
				    
				    </c:if>
				    
				    <c:if test="${o.otuihuo==1}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==2}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退货\退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==3}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     已退货
				    </c:if>
				    </c:if>
				    </td>
				    </tr>
				    
				   </c:forEach>
				   </table>
				   <p align="right">
						<a href="AdminsellerorderServlet?op=page&page=1">首页</a>&nbsp;
						
						
						<c:if test="${shangpage<1 }">
						没有上一页
						</c:if>
						<c:if test="${shangpage>=1 }">
						  <a href="AdminsellerorderServlet?op=page&page=${shangpage}">上一页</a>
						</c:if>

						&nbsp;
						<c:if test="${xiapage > pagecount }">
						没有下一页
						</c:if>
						<c:if test="${xiapage <= pagecount }">
						  <a href="AdminsellerorderServlet?op=page&page=${xiapage}">下一页</a>
						</c:if>
						
						&nbsp; 
						
						
						<a href="AdminsellerorderServlet?op=page&page=${pagecount }">尾页</a> &nbsp; 
						
						跳转至：
						<select onchange="location='AdminsellerorderServlet?op=page&page='+this.value">
						
						   <c:forEach begin="1" end="${pagecount }" step="1" var="i">
						       <option value="${i}" <c:if test="${index==i }">selected</c:if>  >第${i }页</option>						    
						   </c:forEach>
						  
						</select> 
						跳转至：
					<form action="AdminsellerorderServlet?op=page" method="post">
						<input type="text" name="page" style="width: 20px"
							value="${index }" />页 <input type="submit" value="GO" />
					</form>
					</p>

					<p>
						当前页[${index }],总页数[${pagecount }]
					</p>
				   </div>
								<div role="tabpanel" class="tab-pane fade" id="daifukuan">
									<table class="table text-center">
										<tr>
											<th width="380">商品信息</th>
											<th width="85">单价</th>
											<th width="85">数量</th>
											<th width="120">实付款</th>
											<th width="120">交易状态</th>
											<th width="120">交易操作</th>
										</tr>
				    <c:forEach items="${orderListPayed }" var="o" varStatus="status" >				     
				    <c:if test="${o.opayed==0 }">
				    <c:if test="${o.oorder==0 }">  
                    <tr>
				    <td>
				    <table>
				        <tr>
				            <td  colspan="2"  >${o.odate }&nbsp;订单号：${o.oid  }</td>
				        </tr>
				        <tr>
				            <td><img src="images/temp/${o.clothes.cimgurl }" height="100px" width="100px" /></td>
				            <td>${o.clothes.cname }<br/>颜色：${o.clothes.ccolor }  尺寸：${o.clothes.csize }</td>
				         </tr>
				    </table>
				    </td>
				    <td>￥${o.clothes.cprice }</td>
				    <td>${o.onum }</td>
				    <td>￥${o.oprice}</td>
				    <td>      
				    <c:if test="${o.opayed==1 }">
				           交易成功
				    </c:if>
				    <c:if test="${o.opayed==0 }">
				       等待付款
				    </c:if>
				    <br/>
				    <c:if test="${o.osend==0 }">
				       等待发货
				    </c:if>
				    <c:if test="${o.osend==1 }">
				       已发货
				    </c:if>
				    <br/>
				    <c:if test="${o.ostate==0 }">
				       等待收货
				    </c:if>
				    <c:if test="${o.ostate==1 }">
				       已收货
				    </c:if>
				    </td>
				    <td>
				    
				    <c:if test="${o.osuccess==0 }">
				    <c:if test="${o.oorder==0 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateorder&id=${o.oid}">取消订单</a><br/>
				    </c:if>
				    <c:if test="${o.oorder==1 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				          订单已取消<br/>
				    </c:if>
				    </c:if>
				    
				    <c:if test="${o.osuccess==1 }"> 
				    <br/>
				    <c:if test="${o.otuihuo==0}">
				    
				    <c:if test="${o.osend==0 }">
				    <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatefahuo&id=${o.oid}">确认发货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款</a>
				    
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==0 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateshouhuo&id=${o.oid}">确认收货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				     </c:if>
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==1 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    </c:if>
				    </c:if>
				    
				    </c:if>
				    
				    <c:if test="${o.otuihuo==1}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==2}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退货\退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==3}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     已退货
				    </c:if>
				    
				    </c:if>
				    </td>
				    </tr>
				    </c:if>
				    </c:if>
				   </c:forEach>
				   </table>
				   
				   </div>
								<div role="tabpanel" class="tab-pane fade" id="daifahuo">
									<table class="table text-center">
										<tr>
											<th width="380">商品信息</th>
											<th width="85">单价</th>
											<th width="85">数量</th>
											<th width="120">实付款</th>
											<th width="120">交易状态</th>
											<th width="120">交易操作</th>
										</tr>
				  <c:forEach items="${orderListSend }" var="o" varStatus="status" >	
		          <c:if test="${o.osend==0 }"> 
		          <c:if test="${o.opayed>0 }"> 			     
				    <tr>
				    <td>
				    <table>
				        <tr>
				            <td  colspan="2"  >${o.odate }&nbsp;订单号：${o.oid  }</td>
				        </tr>
				        <tr>
				            <td><img src="images/temp/${o.clothes.cimgurl }" height="100px" width="100px" /></td>
				            <td>${o.clothes.cname }<br/>颜色：${o.clothes.ccolor }  尺寸：${o.clothes.csize }</td>
				         </tr>
				    </table>
				    </td>
				    <td>￥${o.clothes.cprice }</td>
				    <td>${o.onum }</td>
				    <td>￥${o.oprice}</td>
				    <td>      
				    <c:if test="${o.opayed==1 }">
				           交易成功
				    </c:if>
				    <c:if test="${o.opayed==0 }">
				       等待付款
				    </c:if>
				      <br/>
				    <c:if test="${o.osend==0 }">
				       等待发货
				    </c:if>
				    <c:if test="${o.osend==1 }">
				       已发货
				    </c:if>
				    <br/>
				    <c:if test="${o.ostate==0 }">
				       等待收货
				    </c:if>
				    <c:if test="${o.ostate==1 }">
				       已收货
				    </c:if>
				    </td>
				    <td>
				    
				    <c:if test="${o.osuccess==0 }">
				    <c:if test="${o.oorder==0 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateorder&id=${o.oid}">取消订单</a><br/>
				    </c:if>
				    <c:if test="${o.oorder==1 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				          订单已取消<br/>
				    </c:if>
				    </c:if>
				    
				    <c:if test="${o.osuccess==1 }"> 
				    <br/>
				    <c:if test="${o.otuihuo==0}">
				    
				    <c:if test="${o.osend==0 }">
				    <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatefahuo&id=${o.oid}">确认发货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款</a>
				    
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==0 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateshouhuo&id=${o.oid}">确认收货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				     </c:if>
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==1 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    </c:if>
				    </c:if>
				    
				    </c:if>
				    
				   <c:if test="${o.otuihuo==1}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==2}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退货\退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==3}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     已退货
				    </c:if>
				    
				    </c:if>
				    </td>
				    </tr>
				    </c:if>
				    </c:if>
				   </c:forEach>
				   </table>
				   </div>
								<div role="tabpanel" class="tab-pane fade" id="daishouhuo">
									<table class="table text-center">
										<tr>
											<th width="380">商品信息</th>
											<th width="85">单价</th>
											<th width="85">数量</th>
											<th width="120">实付款</th>
											<th width="120">交易状态</th>
											<th width="120">交易操作</th>
										</tr>
			      <c:forEach items="${orderListState }" var="o" varStatus="status" >	
		          <c:if test="${o.ostate==0 }">	
		          <c:if test="${o.opayed>0 }">
		          <c:if test="${o.osend==1 }">     
				    <tr>
				    <td>
				    <table>
				        <tr>
				            <td  colspan="2"  >${o.odate }&nbsp;订单号：${o.oid  }</td>
				        </tr>
				        <tr>
				            <td><img src="images/temp/${o.clothes.cimgurl }" height="100px" width="100px" /></td>
				            <td>${o.clothes.cname }<br/>颜色：${o.clothes.ccolor }  尺寸：${o.clothes.csize }</td>
				         </tr>
				    </table>
				    </td>
				    <td>￥${o.clothes.cprice }</td>
				    <td>${o.onum }</td>
				    <td>￥${o.oprice}</td>
				    <td>      
				    <c:if test="${o.opayed==1 }">
				           交易成功
				    </c:if>
				    <c:if test="${o.opayed==0 }">
				       等待付款
				    </c:if>
				    <br/>
				    <c:if test="${o.osend==0 }">
				       等待发货
				    </c:if>
				    <c:if test="${o.osend==1 }">
				       已发货
				    </c:if>
				       <br/>
				    <c:if test="${o.ostate==0 }">
				       等待收货
				    </c:if>
				    <c:if test="${o.ostate==1 }">
				       已收货
				    </c:if>
				    </td>
				    <td>
				    
				    <c:if test="${o.osuccess==0 }">
				    <c:if test="${o.oorder==0 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateorder&id=${o.oid}">取消订单</a><br/>
				    </c:if>
				    <c:if test="${o.oorder==1 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				          订单已取消<br/>
				    </c:if>
				    </c:if>
				    
				    <c:if test="${o.osuccess==1 }"> 
				    <br/>
				    <c:if test="${o.otuihuo==0}">
				    
				    <c:if test="${o.osend==0 }">
				    <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatefahuo&id=${o.oid}">确认发货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款</a>
				    
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==0 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateshouhuo&id=${o.oid}">确认收货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				     </c:if>
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==1 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    </c:if>
				    </c:if>
				    
				    </c:if>
				    
				    <c:if test="${o.otuihuo==1}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==2}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退货\退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==3}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     已退货
				    </c:if>
				    
				    </c:if>
				    </td>
				    </tr>
				    </c:if>
				    </c:if>
				    </c:if>
				   </c:forEach>
				   </table>
				   </table>
								</div>
								<div role="tabpanel" class="tab-pane fade" id="yishouhuo">
									<table class="table text-center">
										<tr>
											<th width="380">商品信息</th>
											<th width="85">单价</th>
											<th width="85">数量</th>
											<th width="120">实付款</th>
											<th width="120">交易状态</th>
											<th width="120">交易操作</th>
										</tr>
										<c:forEach items="${orderListStates }" var="o" varStatus="status" >	
		          <c:if test="${o.ostate==1 }">
		          <c:if test="${o.otuihuo==0}">
		          <tr>
				    <td>
				    <table>
				        <tr>
				            <td  colspan="2"  >${o.odate }&nbsp;订单号：${o.oid  }</td>
				        </tr>
				        <tr>
				            <td><img src="images/temp/${o.clothes.cimgurl }" height="100px" width="100px" /></td>
				            <td>${o.clothes.cname }<br/>颜色：${o.clothes.ccolor }  尺寸：${o.clothes.csize }</td>
				         </tr>
				    </table>
				    </td>
				    <td>￥${o.clothes.cprice }</td>
				    <td>${o.onum }</td>
				    <td>￥${o.oprice}</td>
				    <td>      
				    <c:if test="${o.opayed==1 }">
				           交易成功
				    </c:if>
				    <c:if test="${o.opayed==0 }">
				       等待付款
				    </c:if>
				       <br/>
				    <c:if test="${o.osend==0 }">
				       等待发货
				    </c:if>
				    <c:if test="${o.osend==1 }">
				       已发货
				    </c:if>
				       <br/>
				    <c:if test="${o.ostate==0 }">
				       等待收货
				    </c:if>
				    <c:if test="${o.ostate==1 }">
				       已收货
				    </c:if>
				    </td>
				  <td>
				    
				    <c:if test="${o.osuccess==0 }">
				    <c:if test="${o.oorder==0 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateorder&id=${o.oid}">取消订单</a><br/>
				    </c:if>
				    <c:if test="${o.oorder==1 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				          订单已取消<br/>
				    </c:if>
				    </c:if>
				    
				    <c:if test="${o.osuccess==1 }"> 
				    <br/>
				    <c:if test="${o.otuihuo==0}">
				    
				    <c:if test="${o.osend==0 }">
				    <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatefahuo&id=${o.oid}">确认发货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款</a>
				    
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==0 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateshouhuo&id=${o.oid}">确认收货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				     </c:if>
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==1 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    </c:if>
				    </c:if>
				    
				    </c:if>
				    
				    <c:if test="${o.otuihuo==1}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==2}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退货\退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==3}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     已退货
				    </c:if>
				    
				    </c:if>
				    </td>
				    </tr>
				    </c:if>
				    </c:if>
				   </c:forEach>
				   </table>
				   </table>	
			</div>
			
			
			<div role="tabpanel" class="tab-pane fade" id="tuidanchuli">
									<table class="table text-center">
										<tr>
											<th width="380">商品信息</th>
											<th width="85">单价</th>
											<th width="85">数量</th>
											<th width="120">实付款</th>
											<th width="120">交易状态</th>
											<th width="120">交易操作</th>
										</tr>
										<c:forEach items="${orderListTuihuochuli }" var="o" varStatus="status" >	
		          <c:if test="${o.otuihuo==1 || o.otuihuo==2}"> 
		          <tr>
				    <td>
				    <table>
				        <tr>
				            <td  colspan="2"  >${o.odate }&nbsp;订单号：${o.oid  }</td>
				        </tr>
				        <tr>
				            <td><img src="images/temp/${o.clothes.cimgurl }" height="100px" width="100px" /></td>
				            <td>${o.clothes.cname }<br/>颜色：${o.clothes.ccolor }  尺寸：${o.clothes.csize }</td>
				         </tr>
				    </table>
				    </td>
				    <td>￥${o.clothes.cprice }</td>
				    <td>${o.onum }</td>
				    <td>￥${o.oprice}</td>
				    <td>      
				    <c:if test="${o.opayed==1 }">
				           交易成功
				    </c:if>
				    <c:if test="${o.opayed==0 }">
				       等待付款
				    </c:if>
				      <br/>
				    <c:if test="${o.osend==0 }">
				       等待发货
				    </c:if>
				    <c:if test="${o.osend==1 }">
				       已发货
				    </c:if>
				      <br/>
				    <c:if test="${o.ostate==0 }">
				       等待收货
				    </c:if>
				    <c:if test="${o.ostate==1 }">
				       已收货
				    </c:if>
				    </td>
				   <td>
				    
				    <c:if test="${o.osuccess==0 }">
				    <c:if test="${o.oorder==0 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateorder&id=${o.oid}">取消订单</a><br/>
				    </c:if>
				    <c:if test="${o.oorder==1 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				          订单已取消<br/>
				    </c:if>
				    </c:if>
				    
				    <c:if test="${o.osuccess==1 }"> 
				    <br/>
				    <c:if test="${o.otuihuo==0}">
				    
				    <c:if test="${o.osend==0 }">
				    <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatefahuo&id=${o.oid}">确认发货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款</a>
				    
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==0 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateshouhuo&id=${o.oid}">确认收货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				     </c:if>
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==1 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    </c:if>
				    </c:if>
				    
				    </c:if>
				    
				     <c:if test="${o.otuihuo==1}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==2}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退货\退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==3}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     已退货
				    </c:if>
				    
				    </c:if>
				    </td>
				    </tr>
				    </c:if>
				   </c:forEach>
				   </table>
				   </table>	
			</div>
			
			
			<div role="tabpanel" class="tab-pane fade" id="tuidan">
									<table class="table text-center">
										<tr>
											<th width="380">商品信息</th>
											<th width="85">单价</th>
											<th width="85">数量</th>
											<th width="120">实付款</th>
											<th width="120">交易状态</th>
											<th width="120">交易操作</th>
										</tr>
										<c:forEach items="${orderListTuihuo }" var="o" varStatus="status" >	
		          <c:if test="${o.otuihuo==3 }"> 
		          <tr>
				    <td>
				    <table>
				        <tr>
				            <td  colspan="2"  >${o.odate }&nbsp;订单号：${o.oid  }</td>
				        </tr>
				        <tr>
				            <td><img src="images/temp/${o.clothes.cimgurl }" height="100px" width="100px" /></td>
				            <td>${o.clothes.cname }<br/>颜色：${o.clothes.ccolor }  尺寸：${o.clothes.csize }</td>
				         </tr>
				    </table>
				    </td>
				    <td>￥${o.clothes.cprice }</td>
				    <td>${o.onum }</td>
				    <td>￥${o.oprice}</td>
				    <td>      
				    <c:if test="${o.opayed==1 }">
				           交易成功
				    </c:if>
				    <c:if test="${o.opayed==0 }">
				       等待付款
				    </c:if>
				      <br/>
				    <c:if test="${o.osend==0 }">
				       等待发货
				    </c:if>
				    <c:if test="${o.osend==1 }">
				       已发货
				    </c:if>
				      <br/>
				    <c:if test="${o.ostate==0 }">
				       等待收货
				    </c:if>
				    <c:if test="${o.ostate==1 }">
				       已收货
				    </c:if>
				    </td>
				   <td>
				    
				    <c:if test="${o.osuccess==0 }">
				    <c:if test="${o.oorder==0 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateorder&id=${o.oid}">取消订单</a><br/>
				    </c:if>
				    <c:if test="${o.oorder==1 }">  
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				          订单已取消<br/>
				    </c:if>
				    </c:if>
				    
				    <c:if test="${o.osuccess==1 }"> 
				    <br/>
				    <c:if test="${o.otuihuo==0}">
				    
				    <c:if test="${o.osend==0 }">
				    <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatefahuo&id=${o.oid}">确认发货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款</a>
				    
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==0 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updateshouhuo&id=${o.oid}">确认收货</a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				     </c:if>
				    </c:if>
				    
				    <c:if test="${o.osend==1 }">
				    <c:if test="${o.ostate==1 }">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				    <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款退货</a>
				    </c:if>
				    </c:if>
				    
				    </c:if>
				    
				   <c:if test="${o.otuihuo==1}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==2}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     <a href="AdminsellerorderServlet?op=updatetuihuo&id=${o.oid}">退货\退款申请</a>
				    </c:if>
				    <c:if test="${o.otuihuo==3}">
				     <a href="AdminsellerorderServlet?op=del&id=${o.oid}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a><br/><br/>
				     已退货
				    </c:if>
				    
				    </c:if>
				    </td>
				    </tr>
				    </c:if>
				   </c:forEach>
				   </table>
				   </table>	
			</div>
								
							</div>
						</div>
					</div>
				
				</div>
			</div>
		</section>
	</div>
	<!-- 右侧菜单 -->
	<div class="right-nav">
		<ul class="r-with-gotop">
			
			<li class="r-toolbar-item to-top">
				<i class="iconfont icon-top"></i>
				<div class="r-tip__box"><span class="r-tip-text">返回顶部</span></div>
			</li>
		</ul>
		<script>
			$(document).ready(function(){ $('.to-top').toTop({position:false}) });
		</script>
	</div>
	<!-- 底部信息 -->
	<div class="footer">
		<div class="footer-tags">
			<div class="tags-box inner">
				<div class="tag-div">
					<img src="images/icons/footer_1.gif" alt="厂家直供">
				</div>
				<div class="tag-div">
					<img src="images/icons/footer_2.gif" alt="一件代发">
				</div>
				<div class="tag-div">
					<img src="images/icons/footer_3.gif" alt="美工活动支持">
				</div>
				<div class="tag-div">
					<img src="images/icons/footer_4.gif" alt="信誉认证">
				</div>
			</div>
		</div>
		<div class="footer-links inner">
			<dl>
				<dt>XXX</dt>
				<a href="#"><dd>企业简介</dd></a>
				<a href="#"><dd>加入U袋</dd></a>
				<a href="#"><dd>隐私说明</dd></a>
			</dl>
			<dl>
				<dt>服务中心</dt>
				<a href="#"><dd>售后服务</dd></a>
				<a href="#"><dd>配送服务</dd></a>
				<a href="#"><dd>用户协议</dd></a>
				<a href="#"><dd>常见问题</dd></a>
			</dl>
			<dl>
				<dt>新手上路</dt>
				<a href="#"><dd>如何成为代理商</dd></a>
				<a href="#"><dd>代销商上架教程</dd></a>
				<a href="#"><dd>分销商常见问题</dd></a>
				<a href="#"><dd>付款账户</dd></a>
			</dl>
		</div>
		<div class="copy-box clearfix">
			<ul class="copy-links">
				<a href="#"><li>网店代销</li></a>
				<a href="#"><li>U袋学堂</li></a>
				<a href="#"><li>联系我们</li></a>
				<a href="#"><li>企业简介</li></a>
				<a href="#"><li>新手上路</li></a>
			</ul>
			<!-- 版权 -->
			<p class="copyright">
				© 2005-2017 XXX 版权所有，并保留所有权利<br>
				ICP备案证书号：闽ICP备XXX号-2&nbsp;&nbsp;&nbsp;&nbsp;福建省宁德市XXX&nbsp;&nbsp;&nbsp;&nbsp;Tel: XXX&nbsp;&nbsp;&nbsp;&nbsp;E-mail: XXX@qq.com
			</p>
		</div>
	</div>
</body>
</html>
